﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace gt.IdentityServer.Data
{
    /// <summary>
    /// 用户权限
    /// </summary>
    public class AppUserRole
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 权限对应的Actions
        /// </summary>
        //public List<string> Actions { get; set; }
        /// <summary>
        /// 权限 对应的用户
        /// </summary>
        public List<AppUserRoleMapping> UserMappings { get; set; }
        /// <summary>
        /// 权限 对应的组
        /// </summary>
        public List<AppGroupRoleMapping> GroupMappings { get; set; }
    }
}
